package com.catsic.zcjc.dao;

import com.catsic.base.BaseDao;
import com.catsic.zcjc.entity.MaintainDataFile;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.QueryHints;

import javax.persistence.QueryHint;
import java.util.List;


public interface MaintainDataFileDao extends BaseDao<MaintainDataFile, String>{

    @Query("select e from MaintainDataFile e where e.maintainData.id = ?1")
    @QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value ="true") })
    public List<MaintainDataFile> findByMaintainId(String maintainId);

}
